<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Title</title>
</head>
<body>
<script>
  console.log(navigator.onLine);
  // var str='18502762585';
  // str.replace();
  // str.substr();
  // str.substring();
</script>
</body>
</html>